package com.kun.service;

import java.util.List;

import com.kun.entity.Charity;
import com.kun.entity.CharityExample;

/**
 * @description: 
 * @author: KM
 * 2018年4月26日 下午11:10:54
 */
public interface CharityService {
	
	public int insertCharity(Charity charity);
	
	/**
	 * @Description: 根据条件更新
	 * @param: Charity，CharityExample
	 */
	public int updateCharity(Charity charity,CharityExample ce);
	
	/**
	 * @Description: 根据用户图书编号查询
	 * @param: userId，booknumber，state
	 */
	public List<Charity> selectCharityByUserIdAndBooknumber(String userId,String booknumber,String state);
	
	public int updateCharityByKey(Charity charity);

}
